package com.example.big_job;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

import com.example.big_job.Adapter.CommentAdapter;
import com.example.big_job.Adapter.MainAdapter;

import java.util.List;

public class CommentActivity extends AppCompatActivity {
    private RecyclerView rv;

    private List<Integer> datas;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_comment);

        RecyclerView mRecyclerView = (RecyclerView) findViewById(R.id.rvc);

        mRecyclerView.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.VERTICAL, false));
        //设置adapter

        CommentAdapter myAdapter=new CommentAdapter(this,datas);
        mRecyclerView.setAdapter(myAdapter);
    }
}